﻿namespace SyringeControl.WinForms
{
    /// <summary>
    /// Implementation of <see cref="INotifyingProperty{T}"/> storing scalar values.
    /// Such values can be bound to controls via simple data binding.
    /// </summary>
    /// <typeparam name="T">type of value stored by property.</typeparam>
    public sealed class SimpleProperty<T> : PropertyBase<T>
    {
        /// <summary>
        /// Initializes an instance of <see cref="SimpleProperty{T}"/> class.
        /// </summary>
        /// <param name="propName">name of property that will be passed to <see cref="INotifyingProperty{T}.Changed"/> handlers.</param>
        public SimpleProperty(string propName)
            : base(propName)
        { }
    }
}
